Skip to content

Sort Images Correctly™ (by blus007)#21

Draft
halotroop2288 wants to merge 5 commits intoNeeEoo:masterfrom
halotroop2288:pr/sort
Draft

Sort Images Correctly™ (by blus007)#21
halotroop2288 wants to merge 5 commits intoNeeEoo:masterfrom
halotroop2288:pr/sort

Conversation

@halotroop2288
Copy link
Copy Markdown

@halotroop2288 halotroop2288 commented Jun 9, 2025

I don't know what I'm doing here. I just want to fix the sorting issue. I saw this solution in another fork, so I rebased it on Funkin-Packer because it's a lot more up-to-date.

This doesn't actually appear to work though. It's still inserting images with a higher-digit index into the middle of the list. Which makes this useless for programmatic animation.

I don't have experience with JavaScript or sorting algorithms so this is nonsense to me. If you can figure out why it's not working, please tell me and I'll try it out.

image

@halotroop2288 halotroop2288 changed the title Sort Images Correctly™ (by odrick) Sort Images Correctly™ (by blus007) Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is there a way to change how sprites are sorted based on name? 1,2,3... instead of 1,10,100,101...

2 participants